package com.lylg.picture_share.dao;

import com.lylg.picture_share.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface UserMapper {
    Integer addUser(User user );

    Integer deleteUser(Integer id);

    Integer updateUser(User user);

    List<User> selectAllUser();

    User selectUserById(Integer id);

    User selectUserByNameAndPwd(User user);



}
